﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using K9Nano.Domain;
using K9Nano.Share.Annotations;

namespace K9Nano.MultiTenancy
{
    [Table("AppTenant")]
    [SharedTable]
    public class Tenant: FullAuditedEntity<Guid>, IPassivable, ISoftDelete
    {
        [StringLength(50)]
        public string Name { get; set; }

        [StringLength(200)]
        public string DisplayName { get; set; }

        public int EditionId { get; set; }

        [StringLength(200)]
        public string LogoUrl { get; set; }

        public bool IsActive { get; set; }
        
        public Tenant()
        {
            IsActive = true;
            IsDeleted = false;
        }
    }
}